#include"Sqlist.h"
int main()
{
	struct SeqList sq;
	SLInit(&sq);
	SLPushBack(&sq, 1);
	SLPushBack(&sq, 2);
	SLPushBack(&sq, 5);
	SLPushBack(&sq, 6);
	SLPushBack(&sq, 3);
	SLPushFront(&sq, 4);
	SLPrint(&sq);//4 1 2 5 6 3 

	SLPopBack(&sq);
	SLPrint(&sq);//4 1 2 5 6

	SLPopFront(&sq);
	SLPrint(&sq);//1 2 5 6

	int pos1 = SLFind(&sq, 5);
	SLErase(&sq, pos1);
	SLPrint(&sq);//1 2 6

	int pos2 = SLFind(&sq, 6);
	SLInsert(&sq, pos2, 100);
	SLPrint(&sq);//1 2 100 6
	return 0;
}